import open from '../utils/open';
import getFileIcon from '../utils/getFileIcon';
import scrollLoad from '../utils/scrollLoad';
import compressImage from '../utils/compressImage';
import { alert, confirm, progress } from '../utils/alert';
import date from '../utils/date';
import file from '../utils/file';

export default {
  install(app) {
    app.config.globalProperties.$open = open;
    app.config.globalProperties.$getFileIcon = getFileIcon;
    app.config.globalProperties.$scrollLoad = scrollLoad;
    app.config.globalProperties.$compressImage = compressImage;
    app.config.globalProperties.$alert = alert;
    app.config.globalProperties.$confirm = confirm;
    app.config.globalProperties.$progress = progress;
    app.config.globalProperties.$dateUtils = date;
    app.config.globalProperties.$file = file;
  }
}